import request from '@/utils/request'

// 查询高后果区列表
export function listSequent(query) {
  return request({
    url: '/system/sequent/list',
    method: 'get',
    params: query
  })
}

// 查询高后果区详细
export function getSequent(sequentId) {
  return request({
    url: '/system/sequent/' + sequentId,
    method: 'get'
  })
}

// 新增高后果区
export function addSequent(data) {
  return request({
    url: '/system/sequent',
    method: 'post',
    data: data
  })
}

// 修改高后果区
export function updateSequent(data) {
  return request({
    url: '/system/sequent',
    method: 'put',
    data: data
  })
}

// 删除高后果区
export function delSequent(sequentId) {
  return request({
    url: '/system/sequent/' + sequentId,
    method: 'delete'
  })
}
